#!/bin/bash

function db1 {
    read -p "Enter a value: " value
    echo $(echo "scale=4;$value*2"|bc)
}

result=$(db1)
echo "The new value is $result"

